package com.webshopping.entry;

import java.io.Serializable;
import java.util.Arrays;

public class Image implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private int id;
	private int commodityId;
	private byte[] img;
	private String imgName;
	private int imgType;
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public int getCommodityId() {
		return commodityId;
	}
	public void setCommodityId(int commodityId) {
		this.commodityId = commodityId;
	}
	public byte[] getImg() {
		return img;
	}
	public void setImg(byte[] img) {
		this.img = img;
	}
	public String getImgName() {
		return imgName;
	}
	public void setImgName(String imgName) {
		this.imgName = imgName;
	}
	public int getImgType() {
		return imgType;
	}
	public void setImgType(int imgType) {
		this.imgType = imgType;
	}
	@Override
	public String toString() {
		return "Image [id=" + id + ", commodityId=" + commodityId + ", img=" + Arrays.toString(img) + ", imgName="
				+ imgName + ", imgType=" + imgType + "]";
	}
	
	
	
	
}
